package com.youpai.platform.user.web.entity.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author welles
 * @version 1.0
 * @description 修改用户信息DTO
 * @date 2021/7/22
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "UpdateUserReq",description = "更新用户详情请求参数")
public class UpdateUserReq {

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "性别")
    private Integer gender;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String birthday;

    @ApiModelProperty(value = "自我简介")
    private String summary;
}
